package com.ruoyi.xiaoshou.mapper;

import java.util.List;
import com.ruoyi.xiaoshou.domain.SaleBackRequest;

/**
 * 销售退货申请Mapper接口
 * 
 * @author lmj
 * @date 2024-10-25
 */
public interface SaleBackRequestMapper 
{

    /**
     * 查询销售退货申请
     * 
     * @param id 销售退货申请主键
     * @return 销售退货申请
     */
    public SaleBackRequest selectSaleBackRequestById(Integer id);

    /**
     * 查询销售退货申请列表
     * 
     * @param saleBackRequest 销售退货申请
     * @return 销售退货申请集合
     */
    public List<SaleBackRequest> selectSaleBackRequestList(SaleBackRequest saleBackRequest);

    /**
     * 新增销售退货申请
     * 
     * @param saleBackRequest 销售退货申请
     * @return 结果
     */
    public int insertSaleBackRequest(SaleBackRequest saleBackRequest);

    /**
     * 修改销售退货申请
     * 
     * @param saleBackRequest 销售退货申请
     * @return 结果
     */
    public int updateSaleBackRequest(SaleBackRequest saleBackRequest);
    public int getCountBySaleBackRequestCode(SaleBackRequest saleBackRequest);
    /**
     * 删除销售退货申请
     * 
     * @param id 销售退货申请主键
     * @return 结果
     */
    public int deleteSaleBackRequestById(Integer id);

    /**
     * 批量删除销售退货申请
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSaleBackRequestByIds(Integer[] ids);

    int updSaleBackRequestByCode(SaleBackRequest saleBackRequest);
}
